package model

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ ResultModel = (*customResultModel)(nil)

type (
	// ResultModel is an interface to be customized, add more methods here,
	// and implement the added methods in customResultModel.
	ResultModel interface {
		resultModel
	}

	customResultModel struct {
		*defaultResultModel
	}
)

// NewResultModel returns a model for the database table.
func NewResultModel(conn sqlx.SqlConn) ResultModel {
	return &customResultModel{
		defaultResultModel: newResultModel(conn),
	}
}
